package cn.edu.wfit.modules.learn.service.impl.projectmanagement;

import java.util.List;

import cn.edu.wfit.modules.learn.domain.WfitProject;
import cn.edu.wfit.modules.learn.mapper.projectmanagement.WfitProjectMapper;
import cn.edu.wfit.modules.learn.service.projectmanagement.IWfitProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 项目Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-25
 */
@Service
public class WfitProjectServiceImpl implements IWfitProjectService
{
    @Autowired
    private WfitProjectMapper wfitProjectMapper;

    /**
     * 查询项目
     * 
     * @param id 项目主键
     * @return 项目
     */
    @Override
    public WfitProject selectWfitProjectById(Long id)
    {
        return wfitProjectMapper.selectWfitProjectById(id);
    }

    /**
     * 查询项目列表
     * 
     * @param wfitProject 项目
     * @return 项目
     */
    @Override
    public List<WfitProject> selectWfitProjectList(WfitProject wfitProject)
    {
        return wfitProjectMapper.selectWfitProjectList(wfitProject);
    }

    /**
     * 新增项目
     * 
     * @param wfitProject 项目
     * @return 结果
     */
    @Override
    public int insertWfitProject(WfitProject wfitProject)
    {
        return wfitProjectMapper.insertWfitProject(wfitProject);
    }

    /**
     * 修改项目
     * 
     * @param wfitProject 项目
     * @return 结果
     */
    @Override
    public int updateWfitProject(WfitProject wfitProject)
    {
        return wfitProjectMapper.updateWfitProject(wfitProject);
    }

    /**
     * 批量删除项目
     * 
     * @param ids 需要删除的项目主键
     * @return 结果
     */
    @Override
    public int deleteWfitProjectByIds(Long[] ids)
    {
        return wfitProjectMapper.deleteWfitProjectByIds(ids);
    }

    /**
     * 删除项目信息
     * 
     * @param id 项目主键
     * @return 结果
     */
    @Override
    public int deleteWfitProjectById(Long id)
    {
        return wfitProjectMapper.deleteWfitProjectById(id);
    }

    /**
     * 根据报名编号查询项目列表
     * @param membernum 报名编号
     * @return 项目列表
     */
    @Override
    public List<WfitProject> selectProjectListByNum(String membernum) {
        return wfitProjectMapper.selectProjectListByNum(membernum);
    }
}
